package com.djinfo.work.service;

import com.djinfo.work.common.bean.AjaxJson;
import com.djinfo.work.common.service.BaseService;
import com.djinfo.work.entity.QsResultEntity;

import java.util.List;
import java.util.Map;

/**
 *
 * @date 2017-06-08 10:48:16
 */
public interface QsResultService  extends BaseService<QsResultEntity> {

	void save(QsResultEntity object);
	void update(QsResultEntity object);
	public List<QsResultEntity> page(QsResultEntity object, Integer pageNum, Integer pageSize);
	public Integer getAllRowCount(QsResultEntity object);
	public void delete(String id);
	public QsResultEntity selectOne(String id);

	/**
	 * 结果列表
	 * @param qsResultEntity
	 * @param pagenum
	 * @param pagesize
     * @return
     */
	public AjaxJson list(QsResultEntity qsResultEntity, Integer pagenum, Integer pagesize);


	public QsResultEntity getQsresultEntityByUidAndContentId(String uid,String contentId);

	public void deleteResultByUserIdAndQuestionId(String userId,String questionId,String idAttached);

	public List getQuResultListByUidAndQid(String userId,String questionId);


	public QsResultEntity getQsResultByQsId(String qsId);



}
